package com.bishe.admin.mapper;

import com.bishe.admin.entity.User;
import com.bishe.admin.entity.UserDto;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface LoginMapper {

     //@Select("select * from user where name=#{name} and password=#{password}")
     User Login(User user) ;
@Insert("INSERT into user (id,username,password,email ) values (#{id},#{userName},#{password},#{email})")
    Boolean Registered(UserDto user);
}
